function target = LoadTarget(P)

% global memory variables
global targets;
global targets_op;

P_color = P{2};
P_num = P{3};

if (P_color == 'r')
    target = targets{P_num};
else
    target = targets_op{P_num};
end

end